package <%= MapperPackageName %>;

import <%= domainPackageName %>.<%= camelCaseName(tableName,true) %>;
import <%= utilsPackageName %>.CamelMap;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* <%= camelCaseName(tableName,true) %> <%=tableComment %>  Mapper
*
* @author 代码生成器@zhangQ
* @date <%= formatTime() %>
*/
@Mapper
@Repository
public interface <%= camelCaseName(tableName,true) %>Mapper {

    /**
     * TODO(根据条件查询列表)
     *
     * @return
     * @author 代码生成器@zhangQ
     * @date <%= formatTime() %>
     */
    List<CamelMap> queryMapByPage(Map map);

    /**
     * TODO(批量插入<%= camelCaseName(tableName, true) %>)
     *
     * @return
     * @author 代码生成器@zhangQ
     * @date <%= formatTime() %>
     */
    Integer batchInsert(@Param("<%= camelCaseName(tableName, false) %>List") List<<%= camelCaseName(tableName, true) %>> <%= camelCaseName(tableName, false) %>List);

    /**
     * TODO(批量更新<%= camelCaseName(tableName, true) %>)
     *
     * @return
     * @author 代码生成器@zhangQ
     * @date <%= formatTime() %>
     */
    Integer batchUpdate(@Param("<%= camelCaseName(tableName, false) %>List") List<<%= camelCaseName(tableName, true) %>> <%= camelCaseName(tableName, false) %>List);
}
